const db = require('../db');

let User = db.defineModel('users', {
    email: {
        type: db.STRING(100),
        unique: true
    },
    passwd: db.STRING(100),
    name: db.STRING(100),
    isAdmin: db.BOOLEAN,
    like: db.BIGINT
});

module.exports = User;
